package com.linzh.commonbase.service.impl;

import com.linzh.commonbase.mapper.UserMapper;
import com.linzh.commonbase.pojo.User;
import com.linzh.commonbase.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserMapper mapper;
    @Override
    public User findByUserName(String user_name) {
        return mapper.findByUserName(user_name);
    }

    @Override
    public int addUser(User user) {
        return mapper.addUser(user);
    }

    @Override
    public int freezeUser(int id) {
        return mapper.freezeUser(id);
    }

    @Override
    public int delUser(int id) {
        return mapper.delUser(id);
    }

    @Override
    public List<User> findUserList() {
        return mapper.findUserList();
    }
}
